package com.zmy.xcx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zmy.xcx.dao.entity.HypertensionSelfCheck;
import com.zmy.xcx.pojo.dto.HypertensionSelfCheckDTO;
import com.zmy.xcx.pojo.vo.AdviceVO;
import com.zmy.xcx.pojo.vo.HypertensionMedicationVO;
import com.zmy.xcx.pojo.vo.HypertensionSelfCheckVO;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

public interface HypertensionSelfCheckService extends IService<HypertensionSelfCheck> {
    /**
     * 根据openid保存用户年龄
     * @param age
     */
    void saveAgeCheckHypertension(Integer age);

    /**
     * 根据openid保存高血压自测信息
     * @param hypertensionSelfCheckDTO
     * @return
     */

    List<AdviceVO> saveCheckHypertension(HypertensionSelfCheckDTO hypertensionSelfCheckDTO);

    /**
     * 根据openid获取用户信息
     * @return
     */
    HypertensionSelfCheckVO getHistoryHypertension();

    /**
     * 获取高血压用药
     * @return
     */
    List<HypertensionMedicationVO> getMedicine();

    /**
     * 增加点击量
     * @param id
     */
    void addClicks(Integer id);
}

